from tkinter import *

class GridManager:
	def __init__(self):
		window = Tk()
		window.title("GridManager")

		message = Message(window,text = "This Message widget occupies three rows and two columns")
		message.grid(row = 1,column = 1,rowspan = 3,columnspan = 2)
		Label(window, text = "First Name:").grid(row = 1, column = 3)
		self.fname = StringVar()
		Entry(window,textvariable=self.fname).grid(row = 1, column = 4, padx = 5, pady = 5)
		Label(window, text = "Last Name").grid(row = 2, column = 3)
		self.lname = StringVar()
		Entry(window,textvariable=self.lname).grid(row = 2, column = 4, padx = 5, pady = 5)
		Button(window, text = "Get Name").grid(row = 3, column = 4, padx = 5, pady = 5,sticky = E)
		window.mainloop()


GridManager()